package com.jiuyuan.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiuyuan.entity.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiuyuan
 * @since 2023-02-15
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    IPage<Employee> allList(IPage<Employee> page, @Param("employee") Employee employee, @Param("localDateTimes") LocalDateTime[] localDateTimes);


    Integer maxWorkId();

    List<Employee> getEmployeeById(@Param("id") Integer id);

    IPage<Employee> employeeWithSaraly(Page<Employee> page);
}
